package Factory;

import java.util.Random;

import tree.Node;
import tree.TreeNodesManager;
import tree.nodeType.numeric.Constant;
/**
 * factory of constant nodes (random numbers between 1-200 
 * 							usually represent the days for operator to work on)
 *
 */
public class ConstantFactory{
	
	
	private Random random;
	
	public ConstantFactory() {
		random = new Random();
	}
	
	public Node createRandomNode(Node parent, TreeNodesManager treeNodesManager,int depth) {
		return new Constant(random.nextInt(10)+1, parent, treeNodesManager,depth);
	}
}
